package com.collection.provider.service.sys;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.collection.api.entity.sys.SysResource;
import com.collection.api.entity.sys.SysUser;
import com.collection.api.sys.ShiroService;
import com.collection.provider.biz.ShiroBiz;

@Service(version ="1.0.0")
public class ShiroServiceImpl implements ShiroService {

	@Autowired
	private ShiroBiz shiroBiz;
	
	@Override
	public List<SysResource> findAllResource() {
		// TODO Auto-generated method stub
		return shiroBiz.findAllResource();
	}

	@Override
	public List<SysResource> findResourceByRoleId(int roleId) {
		// TODO Auto-generated method stub
		return shiroBiz.findResourceByRoleId(roleId);
	}

	@Override
	public SysUser findByUsername(String userName) {
		// TODO Auto-generated method stub
		return shiroBiz.findByUsername(userName);
	}

}
